package com.example.ormsqlsplicingframe1.json;

import java.util.HashMap;
import java.util.List;

public class JsonTree {

    private HashMap<String,Object> fieldMap;

    private List<JsonTree> children;

    public HashMap<String, Object> getFieldMap() {
        return fieldMap;
    }

    public void put(String key,Object value){
        fieldMap.put(key,value);
    }

    public void setFieldMap(HashMap<String, Object> fieldMap) {
        this.fieldMap = fieldMap;
    }

    public List<JsonTree> getChildren() {
        return children;
    }

    public void setChildren(List<JsonTree> children) {
        this.children = children;
    }

    public JsonTree() {
        this.fieldMap = new HashMap<>();
    }
}
